package com.lesso.zgs.sunflower.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.zgs.sunflower.pojo.dto.AttendanceRuleDTO;
import com.lesso.zgs.sunflower.pojo.dto.AttendanceRuleQueryDTO;
import com.lesso.zgs.sunflower.pojo.vo.AttendanceRuleVO;

/**
 * <p>
 * 考勤规则 服务类
 * </p>
 *
 * @author zgs
 * @since 2025-07-03
 */
public interface IAttendanceRuleService {

    /**
     * 保存考勤规则
     */
    Integer save(AttendanceRuleDTO dto);

    /**
     * 根据ID获取考勤规则
     */
    AttendanceRuleDTO getById(Long id);

    /**
     * 更新考勤规则
     */
    Integer update(AttendanceRuleDTO dto);

    /**
     * 删除考勤规则
     */
    Integer delete(Long id);

    /**
     * 分页查询考勤规则
     */
    Page<AttendanceRuleVO> page(AttendanceRuleQueryDTO dto);
} 